package com.atguigu.day19.threadmethod.join03;

public class StarThread extends Thread{


    @Override
    public void run() {

        for (int i = 1; i <=20 ; i++) {

            System.out.println("唱跳rap篮球...咯咯咯咯..."+i);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            /*try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }*/
        }

    }
}
